import { axiosInstance } from "./config";
// 横幅
export const getBannerApi = () => {
    return axiosInstance.get('/banner')
};
// 推荐列表
export const getRecommendListApi = () => {
    return axiosInstance.get ('/personalized');
};
// 热门歌手列表
export const getHotSingerListApi = (offset = 5) => {
    return axiosInstance.get(`/top/artists?offset=${offset}`);
};
// 歌手列表
export const getSingerListApi= (type, alpha, count) => {
    return axiosInstance.get(`/artist/list?cat=${type}&area=${-1}&initial=${alpha.toLowerCase()}&offset=${count}`);
};
// 排行榜
export const getRankListApi = () => {
    return axiosInstance.get('/toplist/detail');
};
// 歌单详情
export const getAlbumDetailRequest = id => {
    return axiosInstance.get (`/playlist/detail?id=${id}`);
};
// 歌手详情
export const getSingerDetails = id => {
    return axiosInstance.get(`/artists?id=${id}`)
};